
class dog:
    name = "小白"
    @classmethod
    def get_name(cls):
        return  cls.name

    def set(self):
        dog.name = "二哈"   #演示如何在普通方法使用类属性和类方法
        print(dog.name)


d = dog()
d.set()
print(dog.get_name())